package org.diysearch.helpers;

import org.diysearch.dao.interfaces.SearchEngineDao;
import org.diysearch.models.SearchResult;
import org.diysearch.tools.BaseTool;

public abstract class SearchHelper {
	private static final SearchEngineDao dao = (SearchEngineDao) BaseTool.IOC_ENGINE.getBean("searchDao");
	
	public static SearchResult search (String query) throws Exception {
		return dao.search(query);
	}
}
